﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace BPMN.Infrastructure.Migrations
{
    public partial class AddColumn : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Eid",
                table: "UserInfo");

            migrationBuilder.DropColumn(
                name: "Evalue",
                table: "UserInfo");

            migrationBuilder.DropColumn(
                name: "Eid",
                table: "Role");

            migrationBuilder.DropColumn(
                name: "Evalue",
                table: "Role");

            migrationBuilder.DropColumn(
                name: "Aid",
                table: "Extend");

            migrationBuilder.DropColumn(
                name: "ADanYuan",
                table: "Attributes");

            migrationBuilder.RenameColumn(
                name: "Uid",
                table: "Extend",
                newName: "FIeldType");

            migrationBuilder.RenameColumn(
                name: "Aattribute",
                table: "Attributes",
                newName: "Aname");

            migrationBuilder.AddColumn<int>(
                name: "Eid",
                table: "Attributes",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "Uid",
                table: "Attributes",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Eid",
                table: "Attributes");

            migrationBuilder.DropColumn(
                name: "Uid",
                table: "Attributes");

            migrationBuilder.RenameColumn(
                name: "FIeldType",
                table: "Extend",
                newName: "Uid");

            migrationBuilder.RenameColumn(
                name: "Aname",
                table: "Attributes",
                newName: "Aattribute");

            migrationBuilder.AddColumn<int>(
                name: "Eid",
                table: "UserInfo",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "Evalue",
                table: "UserInfo",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Eid",
                table: "Role",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "Evalue",
                table: "Role",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Aid",
                table: "Extend",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "ADanYuan",
                table: "Attributes",
                type: "nvarchar(max)",
                nullable: true);
        }
    }
}
